package com.example.j2eeapp.services;


import com.example.j2eeapp.domain.UserEntity;

public interface UserService {
	 /**
     * Create user - persist to database
     * 
     * @param userEntity
     * @return true if success
     */
    boolean createUser(UserEntity userEntity);
    
    /**
     * Check user name availability. UI ajax use.
     * 
     * @param ajax event
     * @return
     */
   // boolean checkAvailable(AjaxBehaviorEvent event);
    
    /**
     * Retrieves full User record from database by user name
     * 
     * @param userName
     * @return UserEntity
     */
   // UserEntity loadUserEntityByUsername(String userName);

    
   

}
